package com.eagle.videoboot.service;

import com.eagle.videoboot.domain.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eagle.videoboot.domain.entity.UsersReport;
import com.eagle.videoboot.domain.vo.UsersVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author eagle
 * @since 2020-04-22
 */
public interface IUsersService extends IService<Users> {
	/**
	 * @Description: 判断用户名是否存在
	 */
	boolean queryUsernameIsExist(String username);
	void saveUser(Users user) throws Exception;
	UsersVO setUserRedisSessionToken(Users userModel);
	boolean delUserRedisSessionToken(String userId);
	Users queryUserForLogin(String username, String password);

	void updateUserInfo(Users user);
	Users queryUserInfo(String userId);
	boolean queryIfFollow(String userId, String fanId);
	boolean isUserLikeVideo(String userId, String videoId);

	void saveUserFanRelation(String userId, String fanId);
	void deleteUserFanRelation(String userId, String fanId);

	void reportUser(UsersReport usersReport);
}
